package com.xunker.client;


import com.xunker.appointment.vo.hospital.ProAndCityVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.ArrayList;

@Repository
@FeignClient("service-dict-manager")
public interface DictFeignClient {
    /**
     * nacos服务中心
     */
    //根据dictory_code和value查询name
    @GetMapping("dictory/dictManager/getName/{dictoryCode}/{value}")
    public String getNameByCN(@PathVariable String dictoryCode, @PathVariable String value);
    //根据value查询name
    @GetMapping("dictory/dictManager/getName/{value}")
    public String getNameByCN(@PathVariable String value);
    //根据dictory_code和value查询省和城市
    @GetMapping("dictory/dictManager/getProAndCity/{dictoryCode}/{value}")
    public ArrayList<ProAndCityVo> getProAndCityByCN(@PathVariable String dictoryCode, @PathVariable String value);
}
